Chrome 138 adds speculation rules target_hint
and Clear-Site-Data: {prefetchCache,prerenderCache}
#26893
+126
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Chrome 138 will add two new features for Speculation Rules:
target_hint
clear-site-data
This will probably be picked up by BCD collector soon, but there's a note I want to add to
target_hint
, and I have the docs in mdn/content#39652 so thought I'd go ahead and raise this.Test results and supporting details
target_hint: https://prerender-demos.glitch.me/target-hint.html
https://wpt.fyi/results/speculation-rules/prerender?label=experimental&label=master&aligned
clear-site-data:
https://wpt.fyi/results/speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.tentative.https.html?label=experimental&label=master&aligned
https://wpt.fyi/results/speculation-rules/prerender/cancel-prerendering-after-clear-site-data-cache-different-origins.tentative.https.html?label=experimental&label=master&aligned
https://wpt.fyi/results/speculation-rules/prerender/cancel-prerendering-after-clear-site-data-cache-same-origin.tentative.https.html?label=experimental&label=master&aligned
(note some of the clear-site-data WPT tests are a little flakey so may show it as not passing - we're working on it!)
target_hint
Chrome Status link: https://chromestatus.com/feature/5162540351094784
Explainer link: https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
Clear-site-data
Chrome Status link: https://chromestatus.com/feature/4755745652080640
Explainer link: https://github.com/WICG/nav-speculation/blob/main/clear-site-data-integration.md
Related issues
See content PR here: mdn/content#39652